﻿using System.Collections.Generic;

namespace Cache.Redis
{
    public class RedisConfig
    {
        private bool _isCache = true;
        private Dictionary<string, RedisNode> _nodes = new Dictionary<string, RedisNode>();
        private int _sendTimeout = -1;

        /// <summary>
        ///     是否缓存
        /// </summary>
        public bool IsCache
        {
            get { return _isCache; }
            set { _isCache = value; }
        }

        /// <summary>
        ///     发送超时时间
        /// </summary>
        public int SendTimeout
        {
            get { return _sendTimeout; }
            set { _sendTimeout = value; }
        }

        /// <summary>
        ///     节点列表
        /// </summary>
        public Dictionary<string, RedisNode> Nodes
        {
            get { return _nodes; }
            set { _nodes = value; }
        }
    }
}